package com.kantboot.util.common.result.entity;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class StateCodeAndMsgEntity {

    /**
     * 状态码
     */
    private String stateCode;

    /**
     * 消息
     */
    private String msg;

    public static StateCodeAndMsgEntity of(String stateCode, String msg) {
        return new StateCodeAndMsgEntity().setStateCode(stateCode).setMsg(msg);
    }


}
